package com.wish.wishfinance_management.controller;


import com.github.pagehelper.PageInfo;
import com.wish.wishfinance_management.entity.TCwReceiptPlan;
import com.wish.wishfinance_management.service.ITCwReceiptPlanService;
import dto.financeDto.TCwReceiptPlanDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

/**
 * <p>
 * 收款计划表 前端控制器
 * </p>
 *
 * @author fanzijun
 * @since 2021-04-08
 */
@RestController
@RequestMapping("/tCwReceiptPlan")
public class TCwReceiptPlanController {

    @Autowired
    private ITCwReceiptPlanService itCwReceiptPlanService;

    @RequestMapping("/selects")
    public ResultEntity selectAllList(TCwReceiptPlanDto tCwReceiptPlan){

        PageInfo<TCwReceiptPlan>  info =itCwReceiptPlanService.selects(tCwReceiptPlan,tCwReceiptPlan.getPageNum(),tCwReceiptPlan.getPageSize());

        return ResultEntity.ok("200",info);
    }

}

